<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="static/js/font_1693746_l88lqiaavxa.js"></script>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/font_1693746_l88lqiaavxa.css">
  <title>开发助手高效版-网页版PbootCMS开发助手</title>
</head>
<body>
<div class="tool-container clearfix">
  <div class="menu">
    <span></span>
  </div>
  <div class="tool-nav" style="display: none;">
    <a href="index.html">导航菜单</a>
    <a href="site.html">站点信息</a>
    <a href="index-page.html">指定栏目</a>
    <a href="index-list.html">指定文章列表</a>
    <a href="index-product.html">指定商品列表</a>
    <a href="sort.html">当前栏目</a>
    <a href="banner.html">轮播图</a>
    <a href="article-list.html">文章列表</a>
    <a href="article-details.html">文章详情</a>
    <a href="productlist.html">产品列表</a>
    <a href="product.html">产品详情</a>
    <a href="pics.html">多图遍历</a>
    <a href="fenye.html">分页</a>
    <a href="message.html">表单留言</a>
    <a href="search.html">搜索列表</a>
    <a href="">IF判断</a>
    <a href="en.html">多语言建站</a> 
    <a href="select.html">多条件筛选</a>
    <a href="label.html">全局标签</a>
    <a href="user.html">会员登录注册</a>
    <a href="javascript:;">无刷新点赞</a>
    <a href="link.html">友情链接</a>
    <a href="other.html">其他</a>
  </div>
  <div class="tool-left">
    <div class="english">
      <a href="en.html"><svg class="icon" aria-hidden="true"><use xlink:href="#iconchina"></use></svg>CN <svg class="icon" aria-hidden="true"><use xlink:href="#iconmeiguo"></use></svg>EN</a>
    </div>
    <div class="logo-search container">
      <a href="site.html" class="logo">极致CMS开发助手</a>
      <a href="search.html" class="search">
        <span>请输入关键词</span>
        <span>搜索</span>
      </a>
      <a href="user.html" class="login">
        <span>登录/注册</span>
      </a>
    </div>
    <div class="header">
      <ul class="navbar clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="productlist.html">产品列表</a></li>
        <li><a href="product.html">产品详情</a></li>
        <li><a href="article-list.html">文章列表</a></li>
        <li><a href="article-details.html">文章详情</a></li>
        <li><a href="page.html">单页</a></li>
        <li><a href="label.html">全局标签</a></li>
        <li><a href="other.html">其他</a></li>
      </ul>
    </div>
    <div class="banner container">
      <a href="banner.html"><img src="static/picture/banner.png" alt=""></a>
    </div>
    <div class="index-main container">
      <a href="sort.html">
        <h3>公司简介</h3>
        <p>欢迎您使用极致CMS商业版, 希望我们的建站系统能够让您在使用的时候感到快乐~郑重承诺极致CMS商业版程序无后门，无限制，全开源，不收授权费，长期运营至死方休。</p>
      </a>
    </div>
    <div class="index-main container">
      <a href="productlist.html">
        <h3>产品展示</h3>
        <span>IMG1</span>
        <span>IMG2</span>
        <span>IMG3</span>
        <span>IMG4</span>
        <span>IMG5</span>
      </a>
    </div>
    <div class="index-foot clearfix">
      <a href="javascript:;" class="index-news">
        <h4>公司新闻</h4>
        <ul>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
        </ul>
      </a>
      <a href="message.html" class="index-form">
        <h4>留言板</h4>
        <div class="form-item">
          <span class="input">请输入您的姓名</span>
        </div>
        <div class="form-item">
          <span class="input">请输入您的电话</span>
        </div>
        <div class="form-item">
          <span class="button">提交</span>
        </div>
      </a>
      <a href="company.html" class="index-contact">
        <h4>联系我们</h4>
        <div class="index-contact-item">
          <p>联系人：HOUJUN</p>
          <p>QQ：11329827</p>
          <p>地址：成都市青羊区</p>
        </div>
      </a>
    </div>
    <div class="index-link container">
      <a href="link.html">
        友情链接：<span>极致CMS</span><span>菜鸟教程</span>
      </a>
    </div>
    <a href="site.html" class="index-footer">
      <p><span>&copy;2020 极致CMS版权所有</span></p>
      <p><span>蜀ICP备2021016482号</span></p>
    </a>
  </div>
  <div class="tool-right">
    <div class="tool-code">
      <h2>极致CMS开发助手</h2>
      <div class="tool-code-box" id="tool-code1">
          
        <div class="code-box code-create">
          <h3>导航判断首页是否选中高亮</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
class="a1 {if(!isset($type))}color{/if}"</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="code-box code-create">
          <h3>导航判断当前栏目是否选中</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
class="a1 {if(isset($type) && in_array($type['id'],$v['children']['ids']))}color{/if}"</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
          
        <div class="code-box code-create">
          <h3>列表页搜索页有缩略图输出缩略图无缩略图不输出</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
{if($v['litpic'])}<img src='{$v['litpic']}' />{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        <div class="code-box code-create">
          <h3>列表页搜索页有缩略图输出缩略图无缩略图输出默认图片</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
{if($v['litpic'])}{$v['litpic']{else}这里输出图片路径或设置自定义个默认图片字段 {/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="code-box code-create">
          <h3>if..else..标签</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="6">
{if($jz['判断']))}
真，输出这里
{else}
假，输出这里
{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        <div class="code-box code-create">
          <h3>多重判断 内容页为jz 其他改V</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="10">
{if($jz['判断']==1))}
判断1真，输出这里
{else if($jz['判断']==2))}
判断1假，判断2真，输出这里
{else if($jz['判断']==3))}
判断1假，判断2假，判断3真，输出这里
{else}
判断1，2，3都是假，输出这里
{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		
		    <div class="code-box code-create">
          <h3>设置自定义字段判断</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
 {if($webconf['kaiguan']==1)}显示公告{else}不显示公告{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		  <div class="code-box code-create">
          <h3>判断更新时间是否为今天</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
{if(date('Y-m-d')==date('Y-m-d',$jz['addtime']))}今天{else}不是今天{/if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		<div class="code-box code-create">
          <h3>判断是否评论</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
{if($jz['comment_num'])>0}有评论{else}没有评论{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		<div class="code-box code-create">
          <h3>判断文章属性-置顶-最热等</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="4">
         自定义属性的话 按顺序排列 如4  5  6
    {if(strpos($v['jzattr'],',1,')!==false)}置顶{/if}
    {if(strpos($v['jzattr'],',2,')!==false)}最热{/if}
    {if(strpos($v['jzattr'],',3,')!==false)}推荐{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		<div class="code-box code-create">
          <h3>文章评分自定义输出</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="2">
     一星=★☆☆☆☆,二星=★★☆☆☆,三星=★★★☆☆,四星=★★★★☆,五星=★★★★★
	 前台输出 {$v['pingfen']}  内容页加jz
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        <div class="code-box code-create">
          <h3>IF判断-是否有下级栏目</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="9">
{pboot:nav}
  {pboot:if([nav:soncount]>0)}
    <ul class="">
    {pboot:2nav  parent=[nav:scode]}
      <li><a href= "[2nav:link]" title="[2nav:name]">[2nav:name]</a></li>
    {/pboot:2nav}
    </ul>
  {/pboot:if}
{/pboot:nav}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
        <div class="code-box code-create">
          <h3>IF判断-分页显示</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
  {pboot:if({page:rows}>0)}中间写分页{/pboot:if}</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="static/js/jquery-1.10.2.js"></script>
<script src="static/js/base.js"></script>
</body>
</html>